import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [

  {
    path: '/',
    component: () => import('@/views/layout'),
    redirect: '/shouye',
    children: [
      {
        path:'/courseCenter',
        component: () => import('@/views/course/index')     
      },
      {
        path:'/shouye',
        component: () => import('@/views/shouye/index'),
      },
      {
        path: '/my',
        component: () => import('@/views/my/index'),
      },
      {
        path: '/homework',
        component: () => import('@/views/homework/homework'),
      },
    ]
  },
  // 登录
  {
    path: '/login',
    component: () => import("@/views/login")
  },
  // 注册
  {
    path: '/register',
    component: () => import("@/views/login/register")
  },
  // 更换密码
  {
    path: '/changePassword',
    component: () => import("@/views/login/changePassword.vue")
  },
  //推荐课程
  {
    path: '/showmore',
    component: () => import("@/views/showmore/showmore")
  },
  //热门套餐
  {
    path: '/bundlelist',
    component: () => import("@/views/shouye/bundlelist")
  },
  //搜索页面
  {
    path: '/search',
    component: () => import("@/views/searchmore")
  },
  //推荐课程下的视频
  {
    path: '/showmoreVideo',
    component: () => import("@/views/showmore_detail")
  },
  //推荐课程下的视频下的增加题库
  {
    path: '/addhomework',
    component: () => import("@/views/addhomework")
  },
  //题库下的 二级分类
  {
    path: '/homeworkCate',
    component: () => import("@/views/homework/tiku_fenlei/fenlei.vue")
  },
  //视屏播放
  {
    path: '/videojs',
    component: () => import("@/views/videojs/video")
  },
  /**
   * @description:我的页面
   * 
   */
  // 我的 子页面    购买 
  {
    path: '/hasPurchase',
    component: () => import("../views/my/hasPurchase/index.vue")
  },
  // 我的 子页面   题库
  {
    path: '/myHomework',
    component: () => import("../views/my/homework/index.vue")
  },
  // 我的 子页面  VIP
  {
    path: '/viPerson',
    component: () => import("../views/my/importantPerson/index.vue")
  },
  // 我的 子页面  消息中心
  {
    path: '/myMessage',
    component: () => import("../views/my/message/index.vue")
  },

  // 我的 子页面   解答 
  {
    path: '/myAnswer',
    component: () => import("../views/my/myAnswer/index.vue")
  },
  // 我的 子页面    提问
  {
    path: '/myComment',
    component: () => import("../views/my/myComment/index.vue")
  },
  // 我的 子页面   设置
  {
    path: '/mySetting',
    component: () => import("../views/my/setting/index.vue")
  },
  {
    path:'/settingIntroduce',
    component: () => import("../views/my/setting/settingThree/settingIntroduce.vue")
  },
  {
    path:'/phoneBind',
    component: () => import("../views/my/setting/settingThree/phoneBind.vue")
  },
  // 我的 子页面   学习中心
  {
    path: '/myStudy',
    component: () => import("../views/my/study/index.vue")
  },
/**
 * @description:做题页面
 */
  // 章节练习
  {
    path: '/testPritise',
    component: () => import("../views/addhomework/test1/test1.vue")
  },
  //历年真题
  {
    path: '/canlendarTest',
    component: () => import("../views/addhomework/test3/canlendar.vue")
  },
  //模拟考试
  {
    path: '/moniTest',
    component: () => import("../views/addhomework/test2")
  },
  // 题库页面的购买
  {
    path: '/BuyTest',
    component: () => import("../views/addhomework/buytest.vue")
  },

]
const router = new VueRouter({
  routes
})
export default router



